package com.webside.series.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.webside.role.model.RoleEntity;
import com.webside.series.model.Bdictionary;
import com.webside.series.model.SeriesEntity;
import com.webside.util.PageUtil;
import com.webside.videoresource.model.VideoResourceEntity;

public interface SeriesService {

	public List<SeriesEntity> queryListByPage(Map<String, Object> parameter);


	// 查询
	public SeriesEntity findById(Long id);

	// 查询type
	List<SeriesEntity> typeByAllselect();

	// 添加
	public int insert(SeriesEntity record);

	// 修改
	public int update(SeriesEntity record);

	// 刪除
	public int deleteBatchById(List<Long> roleIds);

	public int updateSetSum(SeriesEntity record);
	// 处理
	public int updateDispose(List<Long> roleIds);

	// 上线
	public int updateOnline(List<Long> roleIds);

	// 下线
	public int updateOffline(List<Long> roleIds);

	public List<SeriesEntity> queryListByName(String seriesName);


	public int countAll();


	public List<HashMap<String, Object>> querySeries(PageUtil pageUtil, String sort, String code);

	// 根据参查询符合条件的未处理剧集 (lpz)
	//public List<SeriesEntity> SelectDealSeriesList(SeriesEntity record);
	public List<SeriesEntity> findListByName(PageUtil pageUtil,String sort);
	public List<SeriesEntity> selectall(int count,String sort);
	
	public Map<String, Object> selectSeriesByChannelAndNameNotInDistinguish(String channel, String name, int pageNo, int pageSize,Long distinguishId);
	public Map<String, Object> selectSeriesByChannelAndNameInDistinguish(String channel, String name, int pageNo, int pageSize,Long distinguishId);

}